﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FluentValidation.Attributes;
using Archives.Models.FluentConfiguration;

namespace Archives.Models.Users
{
    [Validator(typeof(UserValidator))]
    public class User
    {
        public int Id { get; set; }
        public string FullName { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public string Email { get; set; }
        public bool Active { get; set; }
        public DateTime? CreateDate { get; set; }
        public DateTime? LastLogin { get; set; }


        public  Deparment Deparment { get; set; }
        public virtual ICollection<Role> Roles { get; set; }
    }
}